package service.impl;

import mapper.HistoryMapper;
import org.springframework.stereotype.Service;
import pojo.History;
import service.HistoryService;

import javax.annotation.Resource;
import java.util.List;
@Service("historyService")
public class HistoryServiceImpl implements HistoryService {
    @Resource
    private HistoryMapper historyMapper;

    @Override
    public int insert(String userid, String blogid) {
        return historyMapper.insert(userid,blogid);
    }

    @Override
    public List<History> getHistory(String userid) {

        return historyMapper.getHistory(userid);
    }
    @Override
    public List<History> jundgeBlogid(String blogid) {

        return historyMapper.jundgeBlogid(blogid);
    }
}
